package org.example.portrait.module.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import scala.Int;

/**
 * 用户行为数据模型
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserBehavior {
    private Integer userId;         // 用户ID
    private Integer itemId;       // 物品ID
    private String category;     // 物品分类
    private String behaviorType; // 行为类型: click, view, purchase, share等
    private Long timestamp;      // 行为时间戳

    // {"userId": 1001, "itemId": 10001, "category": "books", "behaviorType": "click", "timestamp": 1620000000000}
}

